projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6925037
)
window: Plug a GList leak
author
Timm Bäder
<mail@baedert.org>
Sun, 21 Jul 2019 09:08:45 +0000
(11:08 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sun, 21 Jul 2019 10:45:10 +0000
(12:45 +0200)
We need to free the GList manually when using g_list_remove_link().
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index 723d2611276256be4b045a1fd433d7ee32e8c628..5061f7e648735ce08cb04076dc423eefdf117d1c 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-9354,6
+9354,7
@@
gtk_window_update_pointer_focus_on_state_change (GtkWindow *window,
/* Unmapping the toplevel, remove pointer focus */
priv->foci = g_list_remove_link (priv->foci, cur);
gtk_pointer_focus_unref (focus);
+ g_list_free (cur);
}
else if (focus->target == widget ||
gtk_widget_is_ancestor (focus->target, widget))